package com.homework.Pets;

public class Dogs extends Pets {
    private String strain;

    public Dogs(String name, int age, int health, int love, String strain) {
        super(name, age, health, love);
        this.strain = strain;
    }

    public Dogs(String strain) {
        this.strain = strain;
    }

    public void show(){
        super.show();
        System.out.println("品种:" + this.strain);
    }
    @Override
    public void eat() {
        System.out.println("🐕吃骨头，喜爱度增加！");
        super.love += 10;
    }

    @Override
    public void toHospital() {
        System.out.println("🐕去医院，健康度增加！");
        super.health += 10;
    }
    public void play(){
        System.out.println("🐕接飞盘");
    }
}
